//
//  RootViewController.m
//  UI2_设计模式
//
//  Created by dllo on 15/11/9.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RootViewController.h"
#import "LTFView.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    LTFView *view = [[LTFView alloc] initWithFrame:CGRectMake(50, 100, [UIScreen mainScreen].bounds.size.width - 50 * 2, 30)];
    
    view.label.text = @"用户名";
    view.textF.placeholder = @"请输入用户名";
    
    [self.view addSubview:view];
    [view release];
    
    
    LTFView *passwdV= [[LTFView alloc] initWithFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y + view.frame.size.height + 30, view.frame.size.width, view.frame.size.height)];
    passwdV.label.text = @"密码";
    passwdV.textF.placeholder = @"请输入密码";
    passwdV.textF.secureTextEntry = YES;
    [self.view addSubview:passwdV];
    [passwdV release];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
